<template>
	<view>
		尊敬的：{{currentName}}
		<u-button @click="toLogin">微信登录</u-button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				currentName:'游客用户'
			}
		},
		methods: {
			toLogin(){
				uni.getUserInfo({
					complete(res) {
						console.log(res)
					}
				})
				// uni.redirectTo({
				// 	url:'/pages/login/login'
				// })
			}
		}
	}
</script>

<style>

</style>
